import {
	ajax,
	getUserInfo
} from '@/common/common.js'
import {
	bpmUrl
} from "@/common/config.js"
//初始赋值
function formonload(list, formData, bussiness) {
	let currentNodeid = bussiness.currentNodeid
	let uid = bussiness.DocUnid
	if (currentNodeid == 'T10002') {
		//加载公司
		// $("#comCode").combobox({
		//     url:"rule?wf_num=R_BasicData_B001",
		//     valueField:'id',
		//     textField:'text',
		// });
	}
	return list
}

function formonsubmit(formData, list, bussiness, subforms) {
	var currentNodeid = bussiness.currentNodeid
	if (currentNodeid == "T10002") {
		var comCode = formData.comCode
		if (comCode == "") {
			alert("请选择所属公司");
			return false;
		}

	}
}

export default {
	formonload,
	formonsubmit
}
